package com.suarte.core.service;

import com.suarte.core.Currency;
import com.suarte.core.ExchangeRate;
import com.suarte.core.ExchangeRateType;
import java.util.Date;
import org.appfuse.service.GenericManager;

import java.util.List;
/**
 * @date   Mar 1, 2011
 * @author Ggutierrez
 */
public interface ExchangeRateManager extends GenericManager<ExchangeRate, Long> {
    public ExchangeRate findByDate(Date date, Currency fromCurrency, Currency toCurrency, ExchangeRateType type);
    public List<ExchangeRate> findRates(Date date, Currency fromCurrency, Currency toCurrency, ExchangeRateType type);
}
